﻿#pragma once

#include "Notification/EditorNotificationItemViewModel.h"
#include "EditorSimpleMessageNotificationItemViewModel.m.h"


class RTexture2D;
class REditorSimpleMessageNotificationItemModel;

//一条简易的通知，只有文本
RCLASS()
class REditorSimpleMessageNotificationItemViewModel : public REditorNotificationItemViewModel
{
    ROBJECT

public:
    virtual void BindModel(TSharedObjectPtr<REditorNotificationItemModel> InModel)override;
    //virtual float GetHeight() const override;

    //获取在文本之前的图标
    TSharedObjectPtr<RTexture2D> GetIcon() const;
    CString GetMessage() const;
protected:
    TWeakObjectPtr<REditorSimpleMessageNotificationItemModel> SimpleMessageModel;

    TSharedObjectPtr<RTexture2D> Info;
    TSharedObjectPtr<RTexture2D> Warning;
    TSharedObjectPtr<RTexture2D> Error;
};